bitkeeper revision 1.1230.2.2 (421a8798mvsMIGmWCHsDOB-iq7xzGg)
authorcl349@arcadians.cl.cam.ac.uk <cl349@arcadians.cl.cam.ac.uk>
Tue, 22 Feb 2005 01:15:04 +0000 (01:15 +0000)
committercl349@arcadians.cl.cam.ac.uk <cl349@arcadians.cl.cam.ac.uk>
Tue, 22 Feb 2005 01:15:04 +0000 (01:15 +0000)
Bring back the console_{putc,getc} set of functions, which
export access to the console without exporting the sercon_handle.
Signed-off-by: chris@xensource.com
xen/drivers/char/console.c
xen/include/xen/console.h

index 0ae6aaece959ae16add6f74a5aaff57da0497a02..10dd4717c5e5f254236746178ac991f87d5663a0 100644 (file)
@@ -466,6 +466,20 @@ void console_force_lock(void)
     spin_lock(&console_lock);
 }
 
+void console_putc(char c)
+{
+    serial_putc(sercon_handle, c);
+}
+
+int console_getc(void)
+{
+    return serial_getc(sercon_handle);
+}
+
+int irq_console_getc(void)
+{
+    return irq_serial_getc(sercon_handle);
+}
 
 
 /*
index 024840c0addec83513bed6876bad1feb7bbdca68..f65633a1af22c9eecf141604b63f722c8eab6d98 100644 (file)
@@ -22,4 +22,8 @@ void console_endboot(int disable_vga);
 void console_force_unlock(void);
 void console_force_lock(void);
 
+void console_putc(char c);
+int console_getc(void);
+int irq_console_getc(void);
+
 #endif /* __CONSOLE_H__ */